using System;
using System.Collections.Generic;
using System.Text;
using FlatRedBall;
using FlatRedBall.Input;
using FlatRedBall.AI.Pathfinding;
using FlatRedBall.Graphics.Animation;
using FlatRedBall.Graphics.Particle;

using FlatRedBall.Graphics.Model;
using FlatRedBall.Math.Geometry;
using FlatRedBall.Math.Splines;

using Cursor = FlatRedBall.Gui.Cursor;
using GuiManager = FlatRedBall.Gui.GuiManager;
using FlatRedBall.Localization;

#if FRB_XNA || SILVERLIGHT
using Keys = Microsoft.Xna.Framework.Input.Keys;
using Vector3 = Microsoft.Xna.Framework.Vector3;
using Texture2D = Microsoft.Xna.Framework.Graphics.Texture2D;
#endif

namespace NereusGame.Screens
{
	public partial class Story
	{
        private Sprite backGround;

		void CustomInitialize()
		{
            InitializeBackground();
		}

		void CustomActivity(bool firstTimeCalled)
		{


		}

		void CustomDestroy()
		{
            SpriteManager.RemoveSprite(backGround);
		}

        static void CustomLoadStaticContent(string contentManagerName)
        {


        }

        private void ResetCamera()
        {
            // reset camera position
            SpriteManager.Camera.Position = SpriteManager.Camera.Velocity = SpriteManager.Camera.Acceleration = Vector3.Zero;
            SpriteManager.Camera.Position.Z = 40f;
        }

        // setup background for this screen
        private void InitializeBackground()
        {
            backGround = new Sprite();
            backGround.Texture = StoryPage;
            SpriteManager.AddSprite(backGround);
            backGround.ScaleX = SpriteManager.Camera.XEdge / 2.35f;  // magic numbers are here to make the image fit the screen LOL
            backGround.ScaleY = SpriteManager.Camera.YEdge / 2.35f;  // magic numbers are here to make the image fit the screen LOL
            backGround.Z = -2;

        }

	}
}
